export const getStoreSyncUtil = (storeName)=>{
	let tmp = uni.getStorageSync(storeName);
	if (typeof tmp == "string" && tmp) {
		return JSON.parse(tmp);
	}else{
		return tmp;
	}
}

//获取当前时间时分秒，毫秒
export const getNowTime = function() {
	let date = new Date();
	let year = date.getFullYear();
	let month = date.getMonth() + 1;
	let month2 = month < 10 ? "0" + month : month;
	let date2 = date.getDate() < 10 ? "0" + date.getDate() : date.getDate();
	let hour = date.getHours() < 10 ? "0" + date.getHours() : date.getHours();
	let minute = date.getMinutes() < 10 ? "0" + date.getMinutes() : date.getMinutes();
	let second = date.getSeconds() < 10 ? "0" + date.getSeconds() : date.getSeconds();
	let milliSeconds = date.getMilliseconds();
	let currentTime = year + '-' + month2 + '-' + date2 + ' ' + hour + ':' + minute + ':' + second;
	return currentTime;
}